﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Couple.Views.TabItemLawTextsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid MinWidth="300" MinHeight="300">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />            
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <ComboBox x:Name="cbHeaders" MinWidth="240" Margin="0, 0, 0, 10" ItemsSource="{Binding LawTexts}" 
                  IsSynchronizedWithCurrentItem="True" SelectionChanged="cbHeaders_SelectionChanged" HorizontalAlignment="Left">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Header}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <Border Grid.Row="2" BorderThickness="1" BorderBrush="LightGray">
            <TextBlock x:Name="tblContent" Text="" TextWrapping="WrapWithOverflow" />
        </Border>

    </Grid>
</UserControl>
